package com.itheima.stargraph.service;

import com.itheima.stargraph.dto.request.Text2ImageReqDto;
import com.itheima.stargraph.dto.respone.Text2ImageResDto;
import com.itheima.stargraph.pojo.ComfyuiTask;

/**
 * TODO
 *
 * @Author mr.wu
 * @Data #{DATE} #{TIME}
 */
public interface Text2ImageService {

    ComfyuiTask getComfyuiTask(Text2ImageReqDto dto);

    /**
     * 添加ComfyuiTask任务实例到队列中排队
     * @param task
     * @return
     */
    ComfyuiTask addQueueTask(ComfyuiTask task);

    Text2ImageResDto prompt(Text2ImageReqDto dto);
}
